//
//  NSArray+Extend.h
//  RMMaterialRed
//
//  Created by XBWH on 2024/3/8.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSArray (Extend)
///自定义方法防止数组越界
- (id)rb_objectAtIndex:(NSUInteger)index;
@end

@interface NSMutableArray (Extend)
///取出某一个元素
-(id)rb_objectAtIndex:(NSUInteger)index;
///添加某一个元素
-(void)rb_addObject:(id)object;
///删除所有
-(void)rb_removeAllObjects;
///删除第一个
-(void)rb_removeFirstObject;
///删除最后一个
-(void)rb_removeLastObject;
///删除某一个元素
-(void)rb_removeObjectAtIndex:(NSUInteger)index;
@end

NS_ASSUME_NONNULL_END
